$(document).ready(function() {
    $.ajax({
        url: APIURL + "/getVideoList"
    }).then(function(data) {
        arr = data.retList;
        var videoFilePath;//video resource path
        var videoSuffix;
        for (var k = 0; k < arr.length; k++) {

            videoSuffix = arr[k].suffix;
            if("mp4" === videoSuffix){
                videoFilePath = APIURL + "/video?serialId=" + arr[k].serialId;
                $(".video_list_ol").append("<li><a href='" + videoFilePath + "'>" + arr[k].name + "</a></li>");
            }else{
                videoFilePath = APIURL +"/videoPlayBox.html?serialId="+ arr[k].serialId;
                $(".video_list_ol").append("<li><a href='" + videoFilePath + "'>" + arr[k].name + "</a></li>");
            }
        }
    });
});

